package com.team5.stockservice.mapper;

import com.team5.stockservice.entity.Inport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
@Mapper
public interface InportMapper {

    List<Inport> select(@Param("providerid") Integer providerid, @Param("goodsid") Integer goodsid, @Param("index") Integer index, @Param("limit") Integer limit);

    void insert(@Param("paytype") String paytype, @Param("inporttime") Date inporttime, @Param("operateperson") String operateperson, @Param("number") Integer number, @Param("remark") String remark
            , @Param("inportprice") Double inportprice, @Param("providerid") Integer providerid, @Param("goodsid") Integer goodsid);

    void update(@Param("id") Integer id, @Param("paytype") String paytype, @Param("inporttime") Date inporttime, @Param("number") Integer number, @Param("remark") String remark
            , @Param("inportprice") Double inportprice, @Param("providerid") Integer providerid, @Param("goodsid") Integer goodsid, @Param("operateperson") String operateperson);

    void delete(Integer id);

    Inport selectById(Integer id);
}
